﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Whoever.Framework.Base;

namespace EditorialProyectos.Business.Entities
{
    public class User : BusinessEntity
    {
        [Required]
        public string Account { get; set; }
        [Required]
        public string Password { get; set; }
        [Required]
        public string Email { get; set; }
        public DateTime SignupDate { get; set; }
        public int RoleId { get; set; }

        public virtual ICollection<AuditLog> AuditLogs { get; set; }
        public virtual ICollection<Project> Projects { get; set; }
        public virtual Profile Profile { get; set; }
        public virtual Role Role { get; set; }
    }
}
